{extend name="base" /}
{block name="body"}
<div class="ad clearfix wow pulse">
			<div id="owl-demo" class="owl-carousel">
				<div class="item">
	                <picture>
	                    <source srcset="/static/web/img/abb.jpg" media="(min-width:50em)">
	                    <source srcset="/static/web/img/abb.jpg" media="(min-width:30em)">
	                    <img src="/static/web/img/abb.jpg" alt="">                    
	                </picture>
	                <div class="page-tit">{$col.category_name}</div>
	            </div>
            

			</div>
		</div>
		<div class="container clearfix news-nav">
                    <?php $categorys = model('category')->where(['pid'=>'1'])->select();?>
			<ul class="column-nav wow bounceInLeft">
                            {foreach name="categorys" item="r"}
				<li {if $r['id']==input('id')}class="active"{/if}><a href="{$r.url}">{$r.category_name}</a></li>
                            {/foreach}
			</ul>
			<div class="input-search pull-right wow bounceInRight">
				<input type="text" name="" id="" value="" class="form-control"  />
				<button class="input-search-btn"><i class="iconfont icon-sousuo"></i></button>
			</div>
		</div>
		

		<div class="container news-box clearfix">
			<div class="pull-left product-content-body wow bounceInLeft">
                            {foreach name="list" item="r"}
				<dl class="news-ajax clearfix">
					<dt>
						<a href="{$r.url}"><img src="{$r.image}"/></a>
					</dt>
					<dd>
						<h2><a href="{$r.url}">{$r.title}</a></h2>
						<p>{if $r.description}{$r.description}{else}<?php $r['description'] = mb_substr(strip_tags($r['content']),'0','80','utf-8');?>{$r.description}{/if}...</p>
						<div class="inft-txt">{$r.create_time}</div>
					</dd>
				</dl>
                            {/foreach}
				
				<div class="clearfix"></div>
				<div class="page-ajax">
					<ul class="pagination">{$list->render()}</ul>
				</div>

			</div>
			<div class="pull-right product-hot wow bounceInRight">
				<h3 class="product-title">热门推荐</h3>
				<ul class="news-hotlist clearfix">
					{foreach name="righta" item="r"}
                                            <li>
                                                    <h2><a href="{$r.url}">{$r.title}</a></h2>
                                                    <p>{if $r.description}{$r.description}{else}<?php $r['description'] = mb_substr(strip_tags($r['content']),'0','150','utf-8');?>{$r.description}{/if}</p>
                                            </li>
                                        {/foreach}
				</ul>
				
			</div>
		</div>
{/block}